﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductionManagement.Domain.ProductionDomain
{
    /// <summary>
    /// 派工质检
    /// </summary>
    [SugarTable("SendWorkersForQualityInspection")]
    public class SendWorkersForQualityInspection : Audit
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int SendWorkersForQualityInspectionId { get; set; }
        /// <summary>
        /// 派工质检编号
        /// </summary>
        public string? SWFQICode { get; set; }
        /// <summary>
        /// 派工质检日期
        /// </summary>
        public DateTime? SWFIDate { get; set; }
        /// <summary>
        /// 来源类型
        /// </summary>
        public string? SWFISource { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string? PName { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string? PNumber { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        /// 
        public string? PSpec { get; set; }
        /// <summary>
        /// 质检人员
        /// </summary>
        public string? SWFIPeople { get; set; }
        /// <summary>
        /// 制单人员
        /// </summary>
        public string? SWFIPersonnel { get; set; }
        /// <summary>
        /// 制单日期
        /// </summary>
        public DateTime? PersonnelTime { get; set; }
        /// <summary>
        /// 质检类型
        /// </summary>
        public string? TypeOfQC { get; set; }
        /// <summary>
        /// 质检数量
        /// </summary>
        public int? TheNumberOfSubmissions { get; set; }
        /// <summary>
        /// 返工数量
        /// </summary>
        public int? NumberOfRework { get; set; }
        /// <summary>
        /// 报废数量
        /// </summary>
        public int? ScrappedQuantity { get; set; }
        /// <summary>
        /// 合格数量
        /// </summary>
        public int? QualifiedQuantity { get; set; }
        /// <summary>
        /// 合格率
        /// </summary>
        public decimal? Rate { get; set; }
        /// <summary>
        /// 质检结果
        /// </summary>
        public string? QualityInspectionResults { get; set; }
        /// <summary>
        /// 不合格原因
        /// </summary>
        public string? Cause { get; set; }

    }
}
